<%--
  Created by IntelliJ IDEA.
  User: Feilong
  Date: 2018/8/12
  Time: 14:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="dist/jquery/jquery-1.8.3.js"></script>
<html>
<head>
    <title>图书信息展示</title>
</head>
<body>

</body>
</html>
<script type="text/javascript">
    $(function () {
        console.log('111aaaa');
        $.ajax({
            type:'POST',
            url:'book',
            data:{
                bid:'33'
            },
            dataType:'json',
            success:function(data){
                console.log('2222aaaa');
                console.log(data.book);
                console.log(data.book.bid);
                console.log(data.book.bisbn);
                console.log(data.book.bname);

                console.log('=========================');
                console.log(data.pagination.totalRecords);
                console.log(data.pagination.maxRows);
                console.log(data.pagination.currPageNo);
                console.log('=========================');

                console.log(data.pagination.list);
                $.each(data.pagination.list,function (index,obj) {
                    console.log(obj.bid + '==' + obj.bisbn + '==' + obj.bname + '==' + obj.bauthor + '===' + obj.bpress + '===' + obj.bprice + '===' + obj.bcount);
                });

            }


        });
    });
</script>